package com.example.yygh.Config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author yjc
 * date 2022/4/39:47
 * @PackageName: com.example.yygh.Config
 * @cLassName : HospConfig
 * @Description:
 */
@Configuration
@ComponentScan("com.example.yygh.mapper")
public class HospConfig {
    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
